
#if 0
CRITICAL_SECTION cs;

unsigned __stdcall worker_thread(void *params)
{
	const char *str = (const char *)params;
	while (1) {
		EnterCriticalSection(&cs);
		printf("str: %s\n", str);
		LeaveCriticalSection( &cs );
	}
}

int main(int argc, char *argv)
{
	/* load rules */
	; /* TODO: implement here! */

	/* init pcap */

	/*
	HANDLE hHoge, hFuga;
	unsigned thread_id;

	exit(0);

    InitializeCriticalSection( &cs );
    hHoge = (HANDLE)_beginthreadex(NULL, 0, &worker_thread, "hoge", 0, &thread_id );
    hFuga = (HANDLE)_beginthreadex(NULL, 0, &worker_thread, "fuga", 0, &thread_id );

	WaitForSingleObject (hHoge, INFINITE);

	printf("hello\n");
	return 0;
	*/
}
#endif
